import { createApp } from "vue";
import { createPinia } from "pinia";
import App from "./App.vue";
import router from "./router";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import utils from "utils";
import mavonEditor from 'mavon-editor'
import { CountDown } from 'vant';
import { Grid, GridItem } from 'vant';
import 'vant/lib/index.css';
import "animate.css";
import 'mavon-editor/dist/css/index.css'
import '@wangeditor/editor/dist/css/style.css'
import mitt from "mitt"
import VueScrollPicker from "vue-scroll-picker";
import "vue-scroll-picker/lib/style.css";


const app = createApp(App);
const pinia = createPinia();
app.use(pinia);
app.use(router);
app.use(mavonEditor)
app.use(ElementPlus);
app.use(CountDown);
app.use(Grid);
app.use(GridItem);
app.use(VueScrollPicker);
app.mount("#app");

app.config.globalProperties.mittBus = new (mitt as any)();


const env = process.env.NODE_ENV;
utils.log(env, "ENV", env === "development" ? "success" : "primary");
